<template>
	<view>
		<h1>登录页面</h1>
		<button @click="handleLogin">点击登录</button>
	</view>
</template>

<script>
	import {
		STOREAGE
	} from "@/config/app.js"

	export default {
		data() {
			return {

			}
		},
		onLoad() {},
		methods: {
			handleLogin() {
				uni.setStorageSync(STOREAGE.TOKEN, '123455')
				uni.navigateTo({
					url: '/pages/index/index'
				})
			}
		}
	}
</script>

<style>

</style>